<?php
class RepliesController extends AppController {

	var $name = 'Replies';
	function index(){
	}
	function add_reply(){
		$comment_id = $_GET['comment_id'];
		$blog_id = $_GET['blog_id'];
	    if(!empty($this->data)){
		$this->data['Reply']['blog_id']=$blog_id;
		$this->data['Reply']['comment_id']=$comment_id;
		$this->data['Reply']['content']=Sanitize::paranoid($this->data['Reply']['content']);
		$this->data['Reply']['dateline']=Sanitize::paranoid($this->data['Reply']['dateline']);
		$this->data['Reply']['author']=$this->Session->read('User.user_id');
	}
}
?>
